import request from '@/utils/request'

// 查询排班列表
export function listOrdertime(query) {
  return request({
    url: '/lhb/ordertime/list',
    method: 'get',
    params: query
  })
}

// 查询排班列表
export function listOrdertime1(query) {
  return request({
    url: '/lhb/ordertime/list1',
    method: 'get',
    params: query
  })
}

// 查询排班详细
export function getOrdertime(otid) {
  return request({
    url: '/lhb/ordertime/' + otid,
    method: 'get'
  })
}

// 新增排班
export function addOrdertime(data) {
  return request({
    url: '/lhb/ordertime',
    method: 'post',
    data: data
  })
}

// 修改排班
export function updateOrdertime(data) {
  return request({
    url: '/lhb/ordertime',
    method: 'put',
    data: data
  })
}

// 删除排班
export function delOrdertime(otid) {
  return request({
    url: '/lhb/ordertime/' + otid,
    method: 'delete'
  })
}
